const express = require("express");
const router = express.Router();
const labManage = require("../router_handler/labManage");
//----------------------------------------------------------------
// 获取所有分类信息路由
router.get("/labManage/labList/", labManage.labList);
// 获取所有分类信息路由
router.get("/labManage/getListAdmin/", labManage.getListAdmin);
// 新增路由
router.post("/labManage/addLab", labManage.addLab);
// 根据id获取信息路由
router.get("/labManage/labList/:id", labManage.getLab);
// 根据id修改信息路由
router.post("/labManage/editLab", labManage.editLab);
// 根据id删除信息路由
router.get("/labManage/deleteLab/:id", labManage.deleteLab);
//预约信息路由
router.get("/labManage/labAppointment/:id", labManage.labAppointment);
//取消预约信息路由
router.get("/labManage/labCancel/:id", labManage.labCancel);
// 获取预约记录列表信息
router.get("/labManage/lab_log_List/", labManage.lab_log_List);

// 获取所有电量路由
router.get("/labManage/labElectricList/", labManage.labElectricList);
// 根据id修改电量路由
router.post("/labManage/editLabElectric", labManage.editLabElectric);

//----------------------------------------------------------------
module.exports = router;
